package com.situ.mall.common.service.impl;

import com.situ.mall.common.entity.MemberAddress;
import com.situ.mall.common.mapper.MemberAddressMapper;
import com.situ.mall.common.service.IMemberAddressService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 会员地址表 服务实现类
 * </p>
 *
 * @author 闫佳宁
 * @since 2023-09-22
 */
@Service
public class MemberAddressServiceImpl extends ServiceImpl<MemberAddressMapper, MemberAddress> implements IMemberAddressService {
@Autowired
private MemberAddressMapper memberAddressMapper;
    @Override
    public List<MemberAddress> selectAddress() {
        return memberAddressMapper.selectAddress();
    }

    @Override
    public MemberAddress selectById(Integer id) {
        return baseMapper.selectById(id);
    }

    @Override
    public void updateDefault(Integer id) {
        baseMapper.update(id);
    }
}
